JBoss Community Archive (Read Only)

Teiid 8.0

Portfolio Example Explained

The investor's portfolio example information is stored in a H2 database and "current" stock prices are stored in a delimited text file. When the VDB is completed, a single query will cause Teiid to access the relational and non-relational sources, calculate the portfolio values, and return the results.

images/author/download/attachments/24674708/steps-defined.png

H2 database is used here since it is Open Source and comes with JBoss AS and is light-weight. You can substitute any other relational database, as long as you have a suitable JDBC driver. The schema file provided, and described below, is specific to H2, but can be easily converted for use with other databases.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-13 12:00:38 UTC, last content change 2012-05-01 16:12:50 UTC.